home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 14393 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.3 KB

  1. Path: airdmhor.gen.nz!not-for-mail
  2. From: gumboot@airdmhor.gen.nz (Simon Hosie)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: Largest effective integer.
  5. Date: 15 Apr 1996 01:11:46 +1200
  6. Organization: Airdmhor : a couple of BBS's, a bunch of people, and a cat.
  7. Message-ID: <4kqtii$3r2@airdmhor.gen.nz>
  8. References: <4ke5gu$o7u@airdmhor.gen.nz> <smryanDpnDDn.418@netcom.com>
  9. NNTP-Posting-Host: airdmhor.gen.nz
  10. X-Newsreader: TIN [version 1.2 PL2]
  11.  
  12. @#$%!?!:
  13. > Measly little 32 bit integers and reals. I grew up on 60 and 48 bit integers,
  14. > 120 bit doubles. And 65535 bit integers.
  15.  
  16. > In other words, this all machine specfic. Look in <limits.h> if your
  17. > compiler has one. 
  18.  
  19.   Yes, but char short int and long have minimums defined for them, I was
  20. hoping that there is a minimum for the mantissa of a float or double.
  21.  
  22.   Is long double an ANSI type, by the way?  I didn't think it was, but
  23. Watcom supports it even though it's the same size as a double.
  24.  
  25.  
  26.  
  27. > With proper abuse of cpp and opaque types, you can make your own abstract
  28. > integer type which should be fairly portable.
  29. > If you really don't care how slow, you can implement it as array
  30. > of bytes and do the arithmetic one byte at a time, propogating carries,
  31. > etc.
  32.  
  33.   I should have mentioned that I wanted it to be small in souce code while
  34. still being portable.
  35.